/*
 * Copyright 2011-2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0.
 * See `LICENSE` in the project root for license information.
 */

package me.ijleex.platform.system.menu.entity;

import org.apache.ibatis.type.Alias;

/**
 * 管理员菜单
 *
 * <p>表示 已授权给指定管理员的菜单的信息</p>
 *
 * @author liym
 * @version 2016-08-15 14:48:23 新建 —— 用表连接的方式查询管理员的菜单
 * @since 2019-03-14 14:14 复用
 */
@Alias("AdminMenu")
public class AdminMenu extends Menu {

    /** 管理员ID */
    private Long adminId;
    /** 管理员名 */
    private String loginId;

    /** 角色ID */
    private Long roleId;
    /** 角色名称 */
    private String roleName;

    /**
     * 用于 {@link me.ijleex.platform.system.menu.mapper.MenuMapper#selectRootMenuByAdmin(AdminMenu)} 方法
     *
     * @param adminId 管理员ID
     * @param systemId 系统标识符
     */
    public AdminMenu(Long adminId, String systemId) {
        this.adminId = adminId;
        super.setSystemId(systemId);
    }

    public Long getAdminId() {
        return adminId;
    }

    public void setAdminId(Long adminId) {
        this.adminId = adminId;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

}
